package com.zsl.swing.redis.desktop.common;

import com.zsl.swing.redis.desktop.utils.CommonUtils;

/**
 * 
 * @author 张帅令
 * &#064;description  一些常量
 *
 */
public class Constants {

	/**
	 * 默认DB数量
	 */
	public static final int DB_COUNT = 16;

	public static final int MAX_DB_COUNT = 16;
	
	/**
	 * 默认桌面窗口宽
	 */
	public static final int MAIN_WINDOW_WIDTH = CommonUtils.maxWidth() - 100;
	
	/**
	 * 默认桌面空口高
	 */
	public static final int MAIN_WINDOW_HEIGHT = CommonUtils.maxHeight() - 100;

	/**
	 * 主窗口分隔条大小
	 */
	public static final int MAIN_WINDOW_DIVIDER_SIZE = 3;
	
	public static final int CONNECTION_W = MAIN_WINDOW_WIDTH /2;
	
	public static final int CONNECTION_H = MAIN_WINDOW_HEIGHT /2;
	

	public static final String REDIS_ALL_PATTERN = "*";

	public static final String UN_KNOW_COMMAND = "%s Unknown Command!";


	/**
	 * Redis成功时返回的编码
	 */
	public static final String OK = "OK";

    public static final int MENU_HEIGHT = 30;
	public static final int MENU_WIDTH = 80;

	public static final int ICON_WIDTH =  30;
	public static final int ICON_HEIGHT =  30;


	public static final String REDIS_QUERY_TIMEOUT_UNIQUE_NAME = "zsl_redis_out_time_query_name";
}
